<!DOCTYPE html>
<html lang="en-US">
<head>
	<meta charset="utf-8">
	<title>"清白泉"廉洁文化宣教网</title>
	<link rel="icon" href="./img/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="./css/index.css">
	<script type="text/javascript" src="./js/jquery-3.3.1.min.js"></script>
	<!--[if lte IE 8]>
		<link rel="stylesheet" type="text/css" href="./css/ie8.css">
		<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.0.min.js"></script>
	<![endif]-->
</head>
<body>
	<!-- 横幅 -->
	<div class="banner-container mountain-top ie8-back">
	<!--[if lte IE 8]>
		<img src="./img/back-mountainTop.png" class="ie8-backImg">
	<![endif]-->
		<div class="border-cell border-top"></div>
		<div class="banner-inner able-center">
			<div class="banner-image">
				<img src="./img/back-wall.png">
			</div>
			<div class="banner-title">
				<img src="./img/title.png">
			</div>
		</div>
		<div class="border-cell border-bottom"></div>
	</div>
	<!-- 主体内容 -->
	<div class="main-container mountain ie8-back">
	<!--[if lte IE 8]>
		<img src="./img/back-mountain.png" class="ie8-backImg">
	<![endif]-->
		<div class="able-center opacity-back">
			<!-- 卷首语 -->
			<div class="jsy-wrap paint ie8-back">
			<!--[if lte IE 8]>
				<img src="./img/back-panit.png" class="ie8-backImg">
			<![endif]-->
			<div class="jsy-inner">
				<div class="jsy-left">
					<img src="./img/tip-jsy.png">
				</div>
				<div class="jsy-right">
					<p class="jsy-parag">
						绍兴，与水结缘2500余年。作为首批历史文化名城，绍兴的文化基因中不可或缺的就是水文化。绍兴的廉政文化建设自然也离不开水文化的清润。“清白泉”位于绍兴市区府山公园南麓岩壁。此泉由北宋著名政治家范仲淹在宝元二年（公元1039年）任越州知府时发现，因“爱其清白儿有德义，为管师之规”（取自范仲淹《清白堂记》），遂取名为“清白泉”。
					</p>
				</div>
			</div>
			</div>
			<!-- 板块信息 -->
			<div class="menu">
				<!-- 名士家风 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/msjf.png">
								<!-- <span class="plate-title-extra">
									绍兴县党支部、网络党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(0,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner">
							<ol class="plate-list" style="height: 169px;">
								<li onclick="linkToList(0,'no1')">
								<a>“清白泉·廉洁家风大讲堂”，邀请外部专家讲授绍兴名士廉洁家风故事。</a></li>
								<li onclick="linkToList(0,'no2')">
								<a>“清白泉·名士家风主题演讲”活动，讲述绍兴历代名士故事，重现“仁孝清廉”情景。</a></li>
								<li class="clear-border" onclick="linkToList(0,'no3')">
								<a>“清白泉·清风故事汇”，绍兴历代名士故事汇编。</a></li>
							</ol>
						</div>
					</div>
				</div>
					<!-- 清风阅读 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/qfyd.png">
								<!-- <span class="plate-title-extra">
									上虞党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(1,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner">
							<div class="plate-opt">
								<ul class="plate-imgList list3">
									<li>
										<div class="gray-border" onclick="linkToList(1,'no5')">
										<div class="img-wrap">
											<img src="./img/dgdj.png">
										</div>
										<p>党规党纪</p>
										</div>
									</li>
									<li>
										<div class="gray-border" onclick="linkToList(1,'no6')">
										<div class="img-wrap">
											<img src="./img/flsy.png">
										</div>
										<p>法规释义</p>
										</div>
									</li>
									<li>
										<div class="gray-border" onclick="linkToList(1,'no7')">
										<div class="img-wrap">
											<img src="./img/ywjd.png">
										</div>
										<p>业务解答</p>
										</div>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<!-- 翰墨清韵 -->
				<div class="palete-wrap single">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/hmqy.png">
								<!-- <span class="plate-title-extra">
									诸暨党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(2,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner carousels-inner">
							<h5>作品展示</h5>
							<input type="button" class="btn-turn" value="<<" onclick="turnImg('hmqyScroll',-1,200);">
							<div class="carousels-area">
								<ul class="plate-imgList list4" id="hmqyScroll">
									
								</ul>
							</div>
							<input type="button" class="btn-turn" value=">>" style="right:30px;" onclick="turnImg('hmqyScroll',1,200);">
							<div style="clear: both;"></div>
						</div>
					</div>
				</div>
				<!-- 倡廉前线 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/clqx.png">
								<!-- <span class="plate-title-extra">
									新昌党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(6,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner" style="height: 325px;">
							<ol class="plate-list" id="clqxPara"></ol>
						</div>
					</div>
				</div>
				<!-- 新风宣言 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/xfxy.png">
								<!-- <span class="plate-title-extra">
									嵊州党支部、越城党支部新昌党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(4,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner" style="height:325px;">
							<h4 class="video-title"></h4>
						<!-- 视频 -->
							<div class="vedio-inner" style="padding: 0 10px;" id="ieVedio"></div>
						</div>
					</div>
				</div>
				<!-- 清风学堂 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/qfxt.png">
								<!-- <span class="plate-title-extra">
									政企党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(5,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner">
							<div class="plate-opt">
								<ul class="plate-imgList list3">
									<!-- <li>
										<div class="img-wrap" onclick="linkToList(5,'no10')">
											<img src="./img/xcljl.png">
										</div>
										<p>现场零距离</p>
									</li> -->
									<li>
										<div class="img-wrap" onclick="linkToList(5,'no11')">
											<img src="./img/qfzl.png">
										</div>
										<p>清风之旅</p>
									</li>
									<li>
										<div class="img-wrap" onclick="linkToList(5,'no12')">
											<img src="./img/jasj.png">
										</div>
										<p>举案说纪</p>
									</li>
									<li>
										<div class="img-wrap" onclick="linkToList(5,'no15')">
											<img src="./img/tmcs.png">
										</div>
										<p>题目测试</p>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div>
				<!-- 清风纪语 -->
				<div class="palete-wrap">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title">
								<img src="./img/qfjy.png">
								<!-- <span class="plate-title-extra">
									嵊州党支部、越城党支部
								</span> -->
								<a class="plate-link-more" onclick="linkToList(3,'')">MORE</a>
							</h3>
						</div>
						<div class="plate-inner">
							<ol class="plate-imgList list2" id="qfjyPara" style="height: 166px;">
									<li>
										<div class="img-wrap" onclick="linkToList(3,'no8')">
											<img src="./img/lian.png">
										</div>
										<p>清风之旅</p>
									</li>
									<li>
										<div class="img-wrap" onclick="linkToList(3,'no16')">
											<img src="./img/feng.png">
										</div>
										<p>举案说纪</p>
									</li>
							</ol>
						</div>
					</div>
				</div>
			</div>

				<div class="img-wrap">
					<img src="./img/jddh.jpg" style="width: 100%;">
				</div>
			</div>
		</div>
	</div>
<script type="text/javascript" src="./js/lianjie.js"></script>
<script type="text/javascript">
var clock = new Array(3);
var clockTimeout = new Array(3);
var scrollID = ["hmqyScroll"];
var waitTime = 3500;  /*图片轮播停留时间*/

$(function(){
	/*翰墨清韵*/
	getDataImgsList("hmqyScroll","no4","all",0,10);
	/*清风纪语*/
	/*getDataList("qfjyPara","no8",0,3);*/
	getDataList("qfjyVedio","no9",0,1);	
	/*倡廉前线*/
	getDataList("clqxPara","no13",0,6);	

});

/*图片轮播功能 
* @param {string} id       轮播容器id 
* @param {string} total    图片总数
* @param {string} pageSize 轮播显示图片数
* @param {string} distant  每次轮播的位移
* @param {string} waitTime 轮播停留时间（ms）
*/
imgScroll = function(id,total,distant){
	$('#'+id).css({"width" :total*distant+"px"});
	var pageSize = Math.floor(($("#"+id).parent(".carousels-area").parent().css("width").replace("px","")-200)/distant);
	var fatherWidth = Math.floor(($("#"+id).parent(".carousels-area").parent().css("width").replace("px","")-200)/distant)*distant;
	$("#"+id).parent(".carousels-area").css("width",fatherWidth+"px");
	var left = $('#'+id).css("left").replace("px","");
	var index = Math.ceil(left*-1/distant);
	var i = 0;
		clock[i] = self.setInterval(function(){
		$('#'+id).css({"left" :"-"+distant*index+"px"});
		index ++;
		if(index>total-pageSize){ // 当前所有图片展示完毕
			index = 0;
		}
	},waitTime);
}

/*轮播器翻页功能 
* @param {string} id       轮播容器id 
* @param {string} dirext   翻转方向（1，-1）
* @param {string} pageSize 轮播显示图片数
* @param {string} distant  每次轮播的位移
*/
turnImg = function(id,direct,distant){
	var pageSize = Math.floor(($("#"+id).parent(".carousels-area").parent().css("width").replace("px","")-200)/distant);
	var i = 0;
	clock[i] = window.clearInterval(clock[i]);  // 暂停定时器
	clearTimeout(clockTimeout[i]);
	var total = $('#'+id).css("width").replace("px","")/distant;
	var left = $('#'+id).css("left").replace("px","");
	var index = Math.ceil(left*-1/distant);
	index = index+direct;
	if(index<total-pageSize+1){
		$('#'+id).css({"left" :"-"+distant*index+"px"});
	}
	// 重新开始轮播
	clockTimeout[i] = setTimeout(imgScroll(id,total,distant,waitTime),5000);
}
/*数据列表分流
* 图片列表
*/
renderDataList = function(id,data){
	data = eval('('+data+')');
	if(typeof (data.infos) == "string"&&data.infos!=""){
		data.infos = eval('('+data.infos+')');
	}
	/*文字序列*/
	if(id.indexOf("Para")!=-1){
		initHtmlData(id,data.infos,"paragh");
	}
	else if(id.indexOf("Scroll")!=-1){
		/*图片数据加载*/
		initHtmlData(id,data.infos,"image");
		/*图片轮播*/
		if(id == "hmqyScroll"){
			imgScroll(id,data.infos.length,200);
		}
	}
	else if(id.indexOf("Vedio")!=-1&&data.infos.length>0){
		browser(data.infos[0].url);
		$(".video-title").text(data.infos[0].title);
	}
	
}
/*插入html片段*/
initHtmlData = function(id,list,type){
	var html = "";
	if(typeof (list) == "string"&&list!=""){
		list = eval('('+list+')');
	}
	
	if(list.length == 0){
		html+="<li class='clear-border blank-tip'><p>暂无信息</p></li>";
	}
	for(var i = 0;i<list.length;i++){
		if(type == "image"){
			html+="<li class='paintY ie8-back'><!--[if lte IE 8]><img src='./img/back-panitY.png' class='ie8-backImg'><![endif]-->"+
			"<a class='img-wrap' href='"+list[i].url+"' target='_blank' title='"+list[i].title+"'><img src='"+list[i].url+"'></a></li>";
		}
		else if(type == "paragh"){
		if(i == list.length-1){
			html+="<li class='clear-border' name='"+list[i].menus+"' id='"+list[i].id+"'><a>"+list[i].title+"</a><span class='time-right'>"+list[i].createdate+"</span></li>";
		}
		else{
			html+="<li title='"+list[i].title+"' name='"+list[i].menus+"' id='"+list[i].id+"'><a>"+list[i].title+"</a><span class='time-right'>"+list[i].createdate+"</span></li>";
		}
		}
	}
	$("#"+id).html(html);
	html=null;
	/*清风纪语绑定事件*/
	if((id == "qfjyPara"||id=="clqxPara")&&list.length>0){
		$("#"+id+" li").each(function(){
			$(this).click(function(){
				linkToDetail(3,$(this).attr("name"),$(this).attr("id"));
			})
		});
	}
}
/*页面带参跳转列表页*/
linkToList = function(mode,id){
	window.location.href = "./listStack.html?status="+mode+"&subtilte="+id;
} 
function browser(url){
    if(getIEVer() < 12) {//ie下
        var iemovie=$('<embed src="'+url+'" style="width:100%" height="280"></embed>');
        $('#ieVedio').append(iemovie);
    } else {//其他浏览器
        var movie=$('<video src="'+url+'"   style="width:100%" height="280" controls="controls" autoplay="autoplay"></video>');
        $('#ieVedio').append(movie);
    }
}
</script>
</body>
</ html>